namespace Box.GameCore {
	public partial class EventSystem : Godot.Node {
		private Game Game = Game.Instance;

		public bool PublishEvent(string name,EventArgs args) {
			IEvent e = (IEvent)Game.Register.GetRegisterItem("Event",name).Singleton;
			if(e == null) return false;
			e.Execute(args);
			return true;
		}
	}
}
